Skip to content

[5.3] SR-13015: Decimal calculation incorrect on Linux #2829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2020

Conversation

finagolfin
Copy link
Member

From #2827.

Fix typo and logic error in the overflow check in integerMultiply(), which was
screwing up Decimal calculations under certain conditions.

(cherry picked from commit 81fddf2)
@spevans
Copy link
Contributor

spevans commented Jun 23, 2020

@swift-ci test

@compnerd
Copy link
Member

CC: @millenomi

After staring at the overflow condition for a while, I think that this is right. It corrects an incorrect result and seems relatively localized. I think that we should go ahead and merge this.

@compnerd compnerd merged commit c0db176 into swiftlang:release/5.3 Jun 24, 2020
@finagolfin finagolfin deleted the 5.3 branch June 24, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants